package com.huiztech.maystall.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.Toast;

public class CommentDetailActivity extends BaseActivity {

    private LinearLayout cancelLayout, submitLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_comment_detail);
        cancelLayout = (LinearLayout) findViewById(R.id.comment_edit_cancel);
        submitLayout = (LinearLayout) findViewById(R.id.comment_edit_submit);

        cancelLayout.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                finish();
            }
        });

        submitLayout.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                Toast.makeText(CommentDetailActivity.this, "评论发表成功！", Toast.LENGTH_SHORT).show();
                finish();
            }
        });
    }

}
